package com.ruoyi.project.system.service.impl;

import com.ruoyi.project.system.domain.SysExam;
import com.ruoyi.project.system.mapper.SysExamMapper;
import com.ruoyi.project.system.service.ISysExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysExamServiceImpl implements ISysExamService {

    @Autowired
    private SysExamMapper examMapper;


    @Override
    public List<SysExam> selectExamList(SysExam exam) {
        return examMapper.selectExamList(exam);
    }

    @Override
    public SysExam selectExamById(Long examId) {
        return examMapper.selectExamById(examId);
    }

    @Override
    public int insertExam(SysExam exam) {
        return examMapper.insertExamInfo(exam);
    }

    @Override
    public int updateExam(SysExam exam) {
        return examMapper.updateExamInfo(exam);
    }

    @Override
    public int deleteExamByIds(Long[] ids) {
        return examMapper.deleteExamByIds(ids);
    }
}
